<template>
  <div class="homeAbout">
    <div class="block">
      <div class="title">
        <div class="fz40">关于·我们</div>
        <a href="/about" class="more">
          <i class="el-icon-loading"></i>
          查看更多
        </a>
      </div>
      <div class="list">
        <div class="item">
          <div class="pic">
          </div>
          <div class="tit">
            <div class="h">工作室简介</div>
            <div class="p">本软件开发工作室隶属于信息工程学院软件教研室</div>
          </div>
        </div>
        <div class="item">
          <div class="pic">
          </div>
          <div class="tit">
            <div class="h">学习方向</div>
            <div class="p">JAVA Python Go 前端 Unity等</div>

          </div>
        </div>
        <div class="item">
          <div class="pic" >
          </div>
          <div class="tit">
            <div class="h">指导老师</div>
            <div class="p">王浩源 王浩源</div>

          </div>

        </div>
        <div class="item">
          <div class="pic">
          </div>
          <div class="tit">
            <div class="h">组风·组训</div>
            <div class="p">天道酬勤 恒者必胜 同舟共济 劈浪向前</div>
            <div class="p"> 奋发向上 勇于拼搏 乐于追求 享受成功</div>


          </div>

        </div>


      </div>

    </div>
  </div>
</template>

<script>
// import CommonStyle from "./CommonStyle";
const CommonStyle = () => import('./CommonStyle')

export default {
  name: "HomeAbout",
  components: {
    CommonStyle
  },
  methods: {
    aboutClick() {
      this.$router.push('/about');
    }
  }
}
</script>

<style lang="less" scoped>
.homeAbout {
  width: 100%;
  background-color: #eeeeee;
  .block {
    margin: 60px auto 0px;
    max-width: 1400px;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    //标题框垂直居中
    align-items: center;
    //position: relative;
    .title{
      display: flex;
      flex-direction: column;
      //防止被压缩
      flex-shrink: 0;
      text-align: left;
      max-width: 50px;
      .fz40 {
        font-size: 40px;
        line-height: 1.3;
        //writing-mode: tb-lr;
        //文字垂直方向，从左向右
        writing-mode: vertical-lr;
      }
      .more {
        //writing-mode: tb-lr;
        writing-mode: vertical-lr;
        font-size: 15px;
        margin-top: 150px;
        display: inline-block;
        line-height: 45px;
      }
    }
    .list {
      display: flex;
      margin-left: 170px;
      flex: 1;
      .item {
        //transform: none;
        //opacity: 1;
        flex: 1;
        margin-left: 20px;
        height: 600px;
        color: #fff;
        position: relative;
        overflow: hidden;
        cursor: pointer;
        //动画
        transition: all 1s ease-out 0s;
        //transform: translateY(-80px);
        //opacity: 0;
        .pic {
          background-image: url("../../assets/img/news/annualmeeting/IMG_8153.png");
          //position: relative;
          height: 100%;
          background-position: center center;
          background-repeat: no-repeat;
          background-size: cover;
          transition: all 0.4s ease-out 0s;
        }
        .pic:hover {
          margin-top: -100px;
          height: 120%;
        }
        .tit {
          position: absolute;
          left: 30px;
          top: 40px;
          writing-mode: vertical-lr;
          max-height: 100%;
          .h {
            font-size: 26px;
            line-height: 1.3;
          }
          .p {
            font-size: 17px;
            margin-top: 20px;
            margin-left: 10px;
          }
        }
      }
    }
  }
}
@media screen and (max-width: 850px) {
  .homeAbout {
    margin: 0 auto;
    width: 90%;
    .block {
      margin-top: 15px;
      //主轴与块轴方向作为默认的书写模式。即纵向从上往下排列（顶对齐）。
      flex-direction: column;
      .title {
        max-width: none;
        .fz40 {
          writing-mode: horizontal-tb;
          font-size: 20px;
        }
        .more {
          writing-mode: horizontal-tb;
          margin-top: 0px;
        }
      }
      .list {
        margin: 0px 0 0;
        width: 100%;
        //height: 200px;
        flex-wrap: wrap;
        justify-content: space-between;
        flex: none;
        .item {
          //opacity: 1 !important;
          //transform: none !important;
          height: 70vw;
          margin-left: 1px;
          .tit {
            left: 8px;
            top: 10px;
            max-height: 90%;
            .h {
              font-size: 18px;
            }
            .p {
              font-size: 10px ;
              margin: 0;
            }
          }
        }
      }

    }

  }
}
</style>
